package com.travel.commons.redis;

import java.util.Collection;
import java.util.Set;
import java.util.concurrent.TimeUnit;

public interface RedisService {

    public void set(String key, Object value);

    public void set(String key, Object value, long time);

    public Object get(String key);

    public void expire(String key, long time, TimeUnit unit);

    public Boolean hasKey(String key);
    @SuppressWarnings("unchecked")
    public void delKeys(String... keys);

    public void delList(Collection<String> keys);

    public Set<String> scan(String key);

    public Long scanCount(String key);
}
